package com.fy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fy.pojo.entity.DayTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface DayTimeMapper extends BaseMapper<DayTime> {
    @Update("update day_time set count=count+1 where day_id=#{currentWeekday} and time=#{currentHour};")
    void updateCount(int currentWeekday, int currentHour);
}
